how to change the string values to title case in python